package com.ccc.scala.base1

import scala.io.Source

object Base5_IO2 {
  // 从文件中获取输入
  def main(args: Array[String]): Unit = {
    val source = Source.fromFile("input/user.json")
    source.foreach(line => print(line))
    source.close()
  }

}
